Inside Microsoft SharePoint 2013 by Scot Hillier

Inside Microsoft SharePoint 2013 by Scot Hillier

Author:Scot Hillier
Language: eng
Format: epub
Tags: COMPUTERS / Enterprise Applications / Collaboration Software
ISBN: 9780735674455
Publisher: Microsoft Press
Published: 2013-11-19T00:00:00+00:00


There is a dual aspect to programming documents in a document library. Though you can program against a document library by using an SPList object, you can also program against a document by using an SPListItem object. However, each document is also represented in the server-side object with an SPFile object. That means you can program against a document in a document library as either an SPListItem or SPFile object. You can obtain the file associated with an item through the File property by using either server-side or client-side code.

The SPListItem object can be used to read or update fields just as you would read or update fields for an item in a standard list. The SPFile object, on the other hand, can be used to control other aspects of the document, such as versioning, check-in, and checkout, as well as reading from and writing to the document’s content.

When the server-side object model is used, the contents of the document can be accessed through the SPFile.OpenBinaryStream method. When the managed client object model is used, the contents can be accessed through the File.OpenBinaryDirect and File.SaveBinaryDirect methods. When the REST API is used, the contents are accessed by referencing the file followed by the $value method, as shown here:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Salesforce Advanced Administrator Certification Guide by Enrico Murru(1347)
Salesforce Platform App Builder Certification Guide by Paul Goodey(1268)
Microsoft Power Platform Functional Consultant: PL-200 Exam Guide by Julian Sharp(1174)
Implementing Microsoft SharePoint 2019 by Lewin Wanzer and Angel Wood(1140)
Office 365 User Guide by Nikkia Carter(1083)
Scrivener for Dummies by Gwen Hernandez(503)
Automated Data Analysis Using Excel by Bissett Brian D.;(492)
Advanced Excel Success by Alan Murray(480)
Personal Finance in Your 20s & 30s For Dummies by Eric Tyson(469)
EXCEL 2021: Learn Excel Essentials Skill with Practical Exercises for Dummies by STRATVERT KEVIN(451)
Basic SPSS Tutorial by Manfred te Grotenhuis & Anneke Matthijssen(432)
Excel 2019 All-In-One for Dummies by Harvey Greg;(431)
Tableau Desktop 10: Get up and running in a blaze with visual modular examples! by Jaxily(420)
Dashboarding and Reporting with Power Pivot and Excel by de Jonge Kasper(420)
Dashboarding and Reporting with Power Pivot and Excel: How to Design and Create a Financial Dashboard with PowerPivot – End to End by Kasper de Jonge(418)
Excel Bible for Beginners: Excel for Dummies Book Containing the Most Awesome Ready to use Excel VBA Macros by Suman Harjit(416)
Microsoft Office Access 2007 Step by Step by Steve Lambert & M. Lambert & Joan Lambert(404)
Excel Dashboards and Reports for Dummies by Michael Alexander(403)
Excel Bible for Beginners: Excel for Dummies Guide to the Best Excel Tools, Tips and Shortcuts you Must Know by Suman Harjit(363)
Quickbooks: Master Quickbooks in 3 Days and Raise Your Financial IQ. A Beginners Guide to Bookkeeping and Accounting for Small Business by Abraham Becker(345)